#!/usr/bin/env python
#code=utf-8

import cgi
import datetime

from google.appengine.ext import db

class Scene(db.Model):
    account = db.StringProperty()
    id = db.IntegerProperty()
    name = db.StringProperty()
    touchFrequence = db.IntegerProperty()
    lastModified = db.DateTimeProperty(auto_now=True)

class User(db.Model):
    account = db.StringProperty()
    userType = db.IntegerProperty()
    password = db.StringProperty()
    currentScene = db.IntegerProperty()
    scenes = db.ListProperty(UserScene)
    createdTime = db.DateTimeProperty(auto_now_add=True)


    
